const app = {
  state: {
    barColor: "rgba(0, 0, 0, .8), rgba(0, 0, 0, .8)",
    barImage: "image/menu-bg-1.jpeg",
    drawer: null,
    isOpenBread: true, // 是否开启面包屑导航
  },
  mutations: {
    /**
     * 设置侧边栏背景图背景
     */
    SET_BAR_IMAGE(state, barImage) {
      state.barImage = barImage;
    },
    /**
     * 设置侧边栏显示状态
     */
    SET_DRAWER(state, drawer) {
      state.drawer = drawer;
    },
    /**
     * 设置侧边栏背景颜色
     */
    SET_SCRIM(state, barColor) {
      state.barColor = barColor;
    },
    /**
     * 设置是否开启面包屑导航
     */
    SET_OPENBREAD(state, openBread) {
      state.isOpenBread = openBread;
    },
  },
};

export default app;
